<?php
namespace app\admin\model;
use think\Db;
use think\Validate;
use think\Model;
    
class User extends Model
{
   public function adduser(){
        $user           = new User;
		$user->username     = 'thinkphp';
		$user->tel    = 'thinkphp@qq.com';
		$user->save();
		// 获取自增ID
		echo $user->id;
    }

    public function hehe(){
		$user               = new User;
		$user->username     = 'thinkphp';
		$user->tel          = 'thinkphp@qq.com';
		$user->save();
		// 获取自增ID
		echo $user->id;
    }

}